Advertisement
Guest User

Best vimrc in the world

a guest
Jun 2nd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.52 KB | None | 0 0
  1. set number
  2. syntax on
  3. set showmatch
  4. set lazyredraw
  5. set tabstop=4
  6. set softtabstop=4
  7. set shiftwidth=4
  8. set incsearch
  9. set hlsearch
  10. set ignorecase
  11. set smartcase
  12. set termencoding=utf8
  13. set nocompatible
  14. set ruler
  15. set showcmd
  16. set ch=1
  17. set mousehide
  18. set autoindent
  19. set smartindent
  20. set whichwrap+=<,>,h,l,[,]
  21.  
  22. function! SuperCleverTab()
  23.     if strpart( getline('.'), 0, col('.')-1 ) =~ '^\s*$'
  24.         return "\<Tab>"
  25.     else
  26.         return "\<C-p>"
  27.     endif
  28. endfunction
  29.  
  30. inoremap <Tab> <C-R>=SuperCleverTab()<cr>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement