Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " =============
- " Table of contents
- " Basic Configuration
- " Vundle and Plugins
- " Indents, Tabshifts, etc.
- " End TOC
- "---------------------------------------------------------
- set nocompatible " be iMproved, required
- filetype off " required
- "------------------------------------------------------------------------
- " set the runtime path to include Vundle and initialize
- set rtp+=~/.vim/bundle/Vundle.vim
- call vundle#begin()
- " let Vundle manage Vundle, required
- Plugin 'gmarik/Vundle.vim'
- " Track the engine.
- Plugin 'SirVer/ultisnips'
- " Installing Vim Markdown
- Plugin 'godlygeek/tabular'
- Plugin 'plasticboy/vim-markdown'
- " Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
- let g:UltiSnipsExpandTrigger="<tab>"
- let g:UltiSnipsJumpForwardTrigger="<c-b>"
- let g:UltiSnipsJumpBackwardTrigger="<c-z>"
- " If you want :UltiSnipsEdit to split your window.
- let g:UltiSnipsEditSplit="vertical"
- "
- " All of your Plugins must be added before the following line
- call vundle#end() " required
- filetype plugin indent on " required
- " To ignore plugin indent changes, instead use:
- "filetype plugin on
- "
- " Brief help
- " :PluginList - lists configured plugins
- " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
- " :PluginSearch foo - searches for foo; append `!` to refresh local cache
- " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
- "
- " 1ee :h vundle for more details or wiki for FAQ
- " Put your non-Plugin stuff after this line
- "---------------------------------------------------------
- " Indentation
- set tabstop=4
- set shiftwidth=4
- set cindent
- set autoindent
- set shiftround " TESTING
- " Numberin g
- set relativenumber
- set number
- " Coloring
- set t_Co=256
- colorscheme kolor
- " Line Highlighting
- set cursorline
- set cursorcolumn
- " Enhanced tab completion
- set wildmenu
- "------------------------------------------------------------------------
- ""Echo example
- "echo ">^.^<"
- "
- "" Setting map leader and localleader
- let mapleader = "-"
- "let maplocalleader = "\\"
- "
- " open vimrc easily
- nnoremap <leader>ev :vsplit $MYVIMRC<cr>
- "
- " apply changes to current session
- nnoremap <leader>sv :source $MYVIMRC<cr>
- "
- "" adding test abbreviation
- "iabbrev ssig -- <cr>Sahil Manocha<cr>nukeballzy@gmail.com<cr>
- "
- "" encapsulate in quotes
- "vnoremap <leader>" <esc>`<i"<esc>`>a"<esc>
- "
- "" Status line
- "set statusline=%f " Path to the file
- "set statusline+=%= " Switch to the right side
- "set statusline+=%l " Current line
- "set statusline+=/ " Separator
- "set statusline+=%L " Total lines
- "Vimscript file settings ---------------------{{{
- augroup filetype_vim
- autocmd!
- autocmd FileType vim setlocal foldmethod=marker
- augroup END
- "}}}
- " File Specific ------------------------------{{{
- augroup filetype_c
- autocmd!
- autocmd FileType cpp nnoremap <F5> :w <cr> :!g++ -std=c++11 % -o %:r <cr>
- autocmd FileType cpp nnoremap <F6> :!./%:r <cr>
- augroup END
- "}}}
- "Abbreviations--------------------------------{{{
- iabbrev _rt <C-k>RT
- iabbrev _bc <C-k>:.
- "}}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement