Guest User

Untitled

a guest
Feb 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. execute pathogen#infect()
  2. execute pathogen#helptags()
  3.  
  4. syntax on
  5.  
  6. filetype plugin on
  7. filetype indent on
  8.  
  9. let mapleader = ","
  10.  
  11. " Quick save
  12. nmap <leader>w :w!<cr>
  13.  
  14. " Quick switch from insert to command mode
  15. inoremap jj <esc>
  16.  
  17. " Highlight words matchting the current word under the cursor
  18. nnoremap <leader>h :let @/='\<<C-R>=expand("<cword>")<cr>\>'<cr>:set hls!<cr>
  19.  
  20. " Let buffers be hidden
  21. set hidden
  22.  
  23. " Quick switch to next/prev buffer and delete buffer
  24. nnoremap <C-n> :bn<cr>
  25. nnoremap <C-p> :bp<cr>
  26. nnoremap <C-d> :bd<cr>
  27.  
  28. " Switch windows
  29. set wmh=0
  30. nnoremap <C-h> <C-W>h
  31. nnoremap <C-j> <C-W>j"<C-W>_<C-W>k15<C-W>_<C-W>j
  32. nnoremap <C-k> <C-W>k"<C-W>_<C-W>j15<C-W>_<C-W>k
  33. nnoremap <C-l> <C-W>l
  34.  
  35. command Bd bp\|bd \#
  36. "nnoremap <silent> <leader>d :lclose<bar>b#<bar>bd #<CR>
  37.  
  38.  
  39. set expandtab
  40. set smarttab
  41. set shiftwidth=4
  42. set tabstop=4
  43. set autoindent
  44. " set smartindent <-- this is generally annoying; don't enable
  45. autocmd FileType nim setlocal shiftwidth=2 tabstop=2
  46.  
  47. " set the current filename as the terminal's window title
  48. set title
  49.  
  50. " keep at least 2 lines below and above the cursor
  51. set scrolloff=2
  52.  
  53. set number
  54.  
  55. " Code folding settings
  56. set foldmethod=indent "fold based on indent
  57. set foldnestmax=10 "deepest fold level
  58. set nofoldenable "don't fold by default
  59. set foldlevel=1 "dunno what this does...
  60.  
  61.  
  62. set t_Co=256
  63.  
  64. syntax enable
  65. set background=light
  66. "set background=dark
  67. let g:solarized_termcolors=256
  68. colorscheme solarized
  69.  
  70.  
  71. " YouCompleteMe configuration
  72. let g:ycm_seed_identifiers_with_syntax = 1 " Completion for programming language's keyword
  73.  
  74. nnoremap <leader>jd :YcmCompleter GoToDefinition<cr>
  75. nnoremap <leader>jr :YcmCompleter GoToReferences<cr>
  76. nnoremap <leader>jh :YcmCompleter GetDoc<cr>
Add Comment
Please, Sign In to add comment