rudydiegas

.vimrc

Sep 14th, 2024
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.51 KB | None | 0 0
  1. set rnu
  2. set nocompatible  "Kill vi-compatibility
  3. " set t_Co=256 "256 color, uncomment if you have a terminal that supports this (like iTerm2)
  4. set encoding=utf-8 "UTF-8 character encoding
  5.  
  6. " Indent 2 spaces
  7. set tabstop=2  "2 space tabs
  8. set shiftwidth=2  "2 space shift
  9. set softtabstop=2  "Tab spaces in no hard tab mode
  10. set expandtab  " Expand tabs into spaces
  11. set autoindent  "autoindent on new lines
  12.  
  13. set showmatch  "Highlight matching braces
  14.  
  15. set ruler  "Show bottom ruler
  16.  
  17. set equalalways  "Split windows equal size
  18.  
  19. set formatoptions=croq  "Enable comment line auto formatting
  20.  
  21. set title  "Set window title to file
  22. set hlsearch  "Highlight on search
  23. set ignorecase  "Search ignoring case
  24. set smartcase  "Search using smartcase
  25. set incsearch  "Start searching immediately
  26.  
  27. set scrolloff=5  "Never scroll off
  28. set wildmode=longest,list  "Better unix-like tab completion
  29. set clipboard=unnamed  "Copy and paste from system clipboard
  30. set lazyredraw  "Don't redraw while running macros (faster)
  31. set wrap  "Visually wrap lines
  32. set linebreak  "Only wrap on 'good' characters for wrapping
  33. set backspace=indent,eol,start  "Better backspacing
  34. set linebreak  "Intelligently wrap long files
  35. set ttyfast  "Speed up vim
  36. set nostartofline "Vertical movement preserves horizontal position
  37.  
  38. " Strip whitespace from end of lines when writing file
  39. autocmd BufWritePre * :%s/\s\+$//e
  40.  
  41. " Turn off the annoying bell
  42. set noerrorbells visualbell t_vb=
  43.  
  44. " Syntax highlighting and stuff
  45. syntax enable
  46. filetype plugin indent on
Advertisement
Add Comment
Please, Sign In to add comment