Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- execute pathogen#infect()
- execute pathogen#helptags()
- syntax on
- filetype plugin on
- filetype indent on
- let mapleader = ","
- " Quick save
- nmap <leader>w :w!<cr>
- " Quick switch from insert to command mode
- inoremap jj <esc>
- " Highlight words matchting the current word under the cursor
- nnoremap <leader>h :let @/='\<<C-R>=expand("<cword>")<cr>\>'<cr>:set hls!<cr>
- " Let buffers be hidden
- set hidden
- " Quick switch to next/prev buffer and delete buffer
- nnoremap <C-n> :bn<cr>
- nnoremap <C-p> :bp<cr>
- nnoremap <C-d> :bd<cr>
- " Switch windows
- set wmh=0
- nnoremap <C-h> <C-W>h
- nnoremap <C-j> <C-W>j"<C-W>_<C-W>k15<C-W>_<C-W>j
- nnoremap <C-k> <C-W>k"<C-W>_<C-W>j15<C-W>_<C-W>k
- nnoremap <C-l> <C-W>l
- command Bd bp\|bd \#
- "nnoremap <silent> <leader>d :lclose<bar>b#<bar>bd #<CR>
- set expandtab
- set smarttab
- set shiftwidth=4
- set tabstop=4
- set autoindent
- " set smartindent <-- this is generally annoying; don't enable
- autocmd FileType nim setlocal shiftwidth=2 tabstop=2
- " set the current filename as the terminal's window title
- set title
- " keep at least 2 lines below and above the cursor
- set scrolloff=2
- set number
- " Code folding settings
- set foldmethod=indent "fold based on indent
- set foldnestmax=10 "deepest fold level
- set nofoldenable "don't fold by default
- set foldlevel=1 "dunno what this does...
- set t_Co=256
- syntax enable
- set background=light
- "set background=dark
- let g:solarized_termcolors=256
- colorscheme solarized
- " YouCompleteMe configuration
- let g:ycm_seed_identifiers_with_syntax = 1 " Completion for programming language's keyword
- nnoremap <leader>jd :YcmCompleter GoToDefinition<cr>
- nnoremap <leader>jr :YcmCompleter GoToReferences<cr>
- nnoremap <leader>jh :YcmCompleter GetDoc<cr>
Add Comment
Please, Sign In to add comment