Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. set surround
  2.  
  3. inoremap jj <ESC>
  4. cnoremap jj <ESC>
  5. vnoremap jj <ESC>
  6.  
  7. nnoremap <C-e> 5<C-e>
  8. nnoremap <C-y> 5<C-y>
  9.  
  10.  
  11. "======================================================================================================
  12.  
  13. syntax on
  14. set lines=30 columns=130
  15.  
  16. set encoding=utf-8
  17. set fileencodings=utf-8,sjis,cp932,euc-jp,iso-2022-jp,gb2312,gbk
  18. set fileformats=unix,dos,mac
  19. set termencoding=utf-8
  20.  
  21. set guioptions-=m
  22. set guioptions-=T
  23. set guioptions-=r
  24. set guioptions-=R
  25. set guioptions-=l
  26. set guioptions-=L
  27. set guioptions-=b
  28. "set imdisable
  29.  
  30. set foldenable " code folding
  31. set foldmethod=indent " options: manual, indent, expr, syntax, diff, marker
  32. set foldlevel=99
  33. set smartindent " Do smart autoindenting when starting a new line
  34. set autoindent " always set autoindenting on
  35. filetype indent plugin on
  36.  
  37.  
  38. set backspace=indent,eol,start whichwrap+=<,>,[,]
  39. set nocompatible
  40. set nobackup
  41. set noswapfile
  42.  
  43. set history=1024
  44. set scrolloff=3
  45. set autochdir
  46. set hlsearch
  47. set ignorecase " ingnore case when do searching
  48. set incsearch " instant search
  49. set smartcase " ignore case if search pattern is all lowercase, case-sensitive otherwise
  50.  
  51. set tabstop=4 " Number of spaces that a <Tab> in the file counts for.
  52. set shiftwidth=4 " number of spaces to use for autoindenting
  53. set softtabstop=4 " Number of spaces that a <Tab> counts for while performing editing operations
  54. set smarttab
  55. set expandtab " when typing <Tab>, use <space> instead
  56. set shiftround " use multiple of shiftwidth when indenting with '<' and '>'
  57.  
  58. set number
  59. set relativenumber
  60. set autoread " auto reload file after being modified
  61. set cursorcolumn " highlight current column
  62. set cursorline " highlight current line
  63. set title " change the terminal's title
  64. set nostartofline " keep cursor postion when switching between buffers
  65. set nowrap " disable wrap
  66. set showcmd " show the current typing command
  67.  
  68. set ffs=unix,dos,mac " Use Unix as the standard file type
  69. set formatoptions+=m
  70. set formatoptions+=B " When joining lines, don't insert a space between two multi-byte characters.
  71. set completeopt=longest,menu " behaviour of insert mode completion
  72. set wildmenu " auto complete command
  73.  
  74. set ai " set auto-indenting on for programming
  75. set showmatch " automatically show matching brackets. works like it does in bbedit.
  76. set vb " turn on the "visual bell" - which is much quieter than the "audio blink"
  77. set ruler " show the cursor position all the time
  78. set laststatus=2 " make the last line where the status is two lines deep so you can see status always
  79. "set background=dark " Use colours that work well on a dark background (Console is usually black)
  80. set showmode " show the current mode
  81.  
  82. set wildignore=**.o,*~,.swp,*.bak,*.pyc,*.class " Ignore compiled files
  83. set viminfo^=% " Remember info about open buffers on close
  84. set magic " For regular expressions turn magic on
  85. set backspace=eol,start,indent " Configure backspace so it acts as it should act
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement