Guest User

Untitled

a guest
Jun 17th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. let mapleader="," " leader is comma
  2. let g:netrw_banner = 0
  3. let g:netrw_liststyle = 3
  4. let g:netrw_browse_split = 4
  5. let g:netrw_altv = 1
  6. let g:netrw_winsize = 25
  7. let g:netrw_list_hide='.*\.swp$'
  8. let g:netrw_chgwin=1
  9. set number " show line numbers
  10. set tabstop=4 " spaces per tab
  11. set softtabstop=4 " space per tab in editing
  12. set expandtab " tabs are spaces
  13. set smartindent
  14. set shiftwidth=4
  15. set showcmd
  16. set incsearch " search as characters are entered
  17. set hlsearch " highlight matches
  18. set showmatch " highlight match brackets
  19. set cursorline " highline current line
  20. set mouse=c " enable mouse support in terminal
  21. set ruler " show file status
  22. syntax on " enable syntax processing
  23. filetype plugin indent on " load filetype specific indent files
  24. highlight ExtraWhitespace ctermbg=red guibg=red
  25. match ExtraWhitespace /\s\+$/
  26. " turn off search highlight
  27. nnoremap <leader><space> :nohlsearch<CR>
  28. " turn off show numbers
  29. nnoremap <f2> :set nonumber!<CR>
  30. " Close a buffer/tab
  31. nnoremap <f3> :bdelete<CR>
  32. " Remove trailling whitespace
  33. nnoremap <f5> :%s/\s\+$//e<CR>
  34. " Show file explorer
  35. nnoremap <silent> <S-CR> :rightbelow 20vs<CR>:e .<CR>
  36. nnoremap <silent> <C-M> :rightbelow 20vs<CR>:e .<CR>
  37. " Tab navigation options
  38. nnoremap th :tabfirst<CR>
  39. nnoremap tk :tabnext<CR>
  40. nnoremap tj :tabprev<CR>
  41. nnoremap tl :tablast<CR>
  42. nnoremap tt :tabedit<Space>
  43. nnoremap tn :tabnext<Space>
  44. nnoremap tm :tabm<Space>
  45. nnoremap td :tabclose<CR>
Add Comment
Please, Sign In to add comment