You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines

  1. " Author: Piotr Orzechowski []
  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. set nomodeline "Disable modelines due to security reasons
  24. syntax on "Enable syntax highlighting
  25. filetype plugin indent on
  26. let mapleader=',' "Set <Leader> to ,
  27. map Q gq "Map Q to do gq formatting
  28. "Select block just after putting it
  29. nnoremap <expr> gV "`[".getregtype(v:register)[0]."`]"
  30. colorscheme eclipsemintdark
  31. let g:netrw_liststyle=1 "Show file details by default
  32. "Hide .* files by default
  33. let g:netrw_list_hide='\(^\|\s\s\)\zs\.\S\+,\(^\|\s\s\)ntuser\.\S\+'
  34. let g:netrw_banner=0 "Hide banner
  35. let g:netrw_sort_options='i' "Ignore case when sorting files
  36. au BufRead,BufNewFile *.ex,*.exs set filetype=ruby
  37. au BufRead,BufNewFile *.app set filetype=erlang