No Description

vimrc 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. " Author: Piotr Orzechowski [orzechowski.tech]
  2. set nocp "Disable Vi compatibility
  3. set autoindent "Automatically indent new lines
  4. set number "Show line numbers
  5. set ruler "Show ruler
  6. set showcmd "Show incomplete commands
  7. set showmode "Show edit mode
  8. set tabstop=4 "A tab is 4 spaces
  9. set expandtab "Always uses spaces instead of tabs
  10. set softtabstop=4 "Insert 4 spaces when tab is pressed
  11. set shiftwidth=4 "An indent is 4 spaces
  12. set smarttab "Indent instead of tab at start of line
  13. set shiftround "Round spaces to nearest shiftwidth multiple
  14. set nojoinspaces "Don't convert spaces to tabs
  15. set colorcolumn=100 "Show right margin
  16. set clipboard=unnamedplus "Always use system clipboard
  17. set hlsearch "Highlight matching words
  18. set incsearch "Forward search during typing
  19. set ic "Ignore case by default
  20. set backspace=indent,eol,start "Allow BS to remove these in front of the cursor
  21. set t_Co=256 "Enable 256 color support
  22. set backupdir=~/.vim/backups "Keep backups here
  23. syntax on "Enable syntax highlighting
  24. filetype plugin indent on
  25. let mapleader=',' "Set <Leader> to ,
  26. map Q gq "Map Q to do gq formatting
  27. "Select block just after putting it
  28. nnoremap <expr> gV "`[".getregtype(v:register)[0]."`]"
  29. colorscheme minteclipse
  30. let g:netrw_liststyle=1 "Show file details by default
  31. "Hide .* files by default
  32. let g:netrw_list_hide='\(^\|\s\s\)\zs\.\S\+,\(^\|\s\s\)ntuser\.\S\+'
  33. let g:netrw_banner=0 "Hide banner
  34. let g:netrw_sort_options='i' "Ignore case when sorting files