Guest User

Untitled

a guest
Jan 20th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. set nocompatible
  2. filetype plugin indent on
  3. syntax on
  4.  
  5. "Colorscheme
  6. set background=dark
  7.  
  8. """""""""""" Key Map
  9. imap jj <Esc>
  10. " shortcut to save
  11. nmap <leader>, :w<cr>
  12.  
  13. set pastetoggle=<F2>
  14.  
  15. nmap <CR> o<Esc>
  16.  
  17. nnoremap <up> <nop>
  18. nnoremap <down> <nop>
  19. nnoremap <left> <nop>
  20. nnoremap <right> <nop>
  21. "inoremap <up> <nop>
  22. "inoremap <down> <nop>
  23. "inoremap <left> <nop>
  24. "inoremap <right> <nop>
  25.  
  26. """""""""""" General
  27.  
  28. let mapleader = ","
  29.  
  30. set nowrap " don't wrap lines
  31. set backspace=indent,eol,start " allow backspacing over everything in insert mode
  32. set backspace=2 " make backspace work like most other apps
  33.  
  34. set autoindent " always set autoindenting on
  35. set smartindent
  36. set copyindent " copy the previous indentation on autoindenting
  37.  
  38.  
  39. "Setting related to tab
  40. set tabstop=4 shiftwidth=4 expandtab
  41. set softtabstop=4 " makes the spaces feel like real tabs
  42. set shiftround " use multiple of shiftwidth when indenting with '<' and '>'
  43.  
  44. "Search related conf also look ~/.vim/vimrc/search-keybindings.vim
  45. set showmatch " set show matching parenthesis
  46. set ignorecase " ignore case when searching
  47. set smartcase " ignore case if search pattern is all lowercase,
  48. set nolazyredraw " don't redraw while executing macros
  49. set hlsearch " highlight search terms
  50. set incsearch " show search matches as you type
  51.  
  52. set history=1000 " remember more commands and search history
  53. set undolevels=1000 " use many muchos levels of undo
  54. set wildignore=*.swp,*.bak,*.pyc,*.class
  55. set title " change the terminal's title
  56. set visualbell " don't beep
  57. set noerrorbells " don't beep
  58.  
  59. set scrolloff=7 "when jumping makes at least 7 lines from top and bottom
  60. set mouse=a
Add Comment
Please, Sign In to add comment