Guest User

Untitled

a guest
Apr 8th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 3.93 KB | None | 0 0
  1. "set clipboard=unnamedplus,autoselect " Use + register (X Window clipboard) as unnamed register
  2. set ofu=syntaxcomplete#Complete
  3. set nocompatible    "Do not use archaic vi settings.
  4. set history=700     "Remember 700 changes (?).
  5. set ignorecase      "Ignore case when searching.
  6. set smartcase       "Ignore case unless it's uppercase.
  7. set incsearch       "Use incremental search
  8. set ruler       "Always show cursor position.
  9. set ttyfast     "Smooth changes (?).
  10. set expandtab       "No 'real' tab.
  11. set noerrorbells    "No sound on errors.
  12. set novisualbell    "No visual warning on errors.
  13. set t_vb=       "(?).
  14. set tm=500      "(?).
  15. set showcmd     "Show the command being typed.
  16. set mousehide       "Hide the mouse while typing.
  17. set cursorcolumn    "Highlight the column of the cursor.
  18. set cursorline      "Higlight the row of the cursor.
  19. "set virtualedit=onemore    "Allow the cursor to go one behind the last symbol.
  20. set listchars=tab:>-,trail:-    "Show tabs and trailing (?).
  21. set nobackup        "No backups.
  22. set noswapfile      "No swap files.
  23. set nowb        "(?).
  24. set number      "Show line numbers.
  25. set numberwidth=4       "Width doesn't change unless the file is >9999 lines.
  26. set tabstop=8       "(?).
  27. set softtabstop=4   "(?).
  28. set shiftwidth=4    "(?).
  29. set scrolloff=3         "Do not move the cursor above/below this threshold.
  30. set undofile            "Create undo files to undo/redo after reopening files.
  31. set wildmenu            "For tab completion when searching.
  32. set wildmode=list:longest   "Same as above. Tab completion,
  33. "set list
  34. "set listchars=tab:▸\ ,eol:¬ "For visibility.
  35. "set listchars=tab:»·,nbsp:·
  36. "set autowrite          "Automatically write (save).
  37. set autoindent      "Use autoindent.
  38. set pastetoggle=<F12>   "To work around the autoindent.
  39. set textwidth=79    "For Python.
  40. set lines=67        "Show as many as possible.
  41. set columns=83          "To show 79 characters + 4 number spaces.
  42. "set columns=166         "To show 79 characters + 4 number spaces.
  43. "set scrollbind
  44. ":noremap <silent> <Leader>vs :<C-u>let @z=&so<CR>:set so=0 noscb<CR>:bo vs<CR>Ljzt:setl scb<CR><C-w>p:setl scb<CR>:let &so=@z<CR>
  45. syntax enable       "Enable syntax highlighting.
  46. winpos 0 24     "Adjust to the edge of the screen.
  47. filetype indent plugin on   "Enable the filetype indent plugin.
  48. set background=dark "Use a dark background by default.
  49. set t_Co=16     "Use 16 colors.
  50. let g:solarized_termcolors=16  "Use 16 colors.
  51. colorscheme solarized   "Use the Solarized colorscheme.
  52. au FocusLost * :wa
  53. map <up> :set number<CR>
  54. map <down> :set relativenumber<CR>
  55. map <left> :set background=light<CR>
  56. map <right> :set background=dark<CR>
  57. map <F4> :w<CR>
  58. map <F3> :silent! %s/\s+$//<CR>:retab<CR>
  59. imap <F4> <ESC>:w<CR>
  60. map <F5> :!python %<CR>
  61. map K <nop>
  62. map <space> ^
  63. imap <up> <nop>
  64. map K i'<esc>ea'<esc>b
  65. imap <down> <nop>
  66. imap <left> <nop>
  67. imap <right> <nop>
  68. imap <S-'> <'><'><left>
  69. "imap jj <ESC>
  70. "imap ( ():<left><left>
  71. "inoremap <Esc> <Esc>`^  
  72. autocmd BufReadPre *.doc set ro
  73. autocmd BufReadPre *.doc set hlsearch!
  74. autocmd BufReadPost *.doc %!antiword "%"
  75. "au CursorHoldI * stopinsert
  76. "set updtatetime 2000
  77. function! PulseCursorLine()
  78.    let current_window = winnr()
  79.  
  80.    windo set nocursorline
  81.    execute current_window . 'wincmd w'
  82.  
  83.    setlocal cursorline
  84.  
  85.    redir => old_hi
  86.        silent execute 'hi CursorLine'
  87.    redir END
  88.    let old_hi = split(old_hi, '\n')[0]
  89.    let old_hi = substitute(old_hi, 'xxx', '', '')
  90.  
  91.    hi CursorLine guibg=#2a2a2a ctermbg=233
  92.    redraw
  93.    sleep 20m
  94.  
  95.    hi CursorLine guibg=#333333 ctermbg=235
  96.    redraw
  97.    sleep 20m
  98.  
  99.    hi CursorLine guibg=#3a3a3a ctermbg=237
  100.    redraw
  101.    sleep 20m
  102.  
  103.    hi CursorLine guibg=#444444 ctermbg=239
  104.    redraw
  105.    sleep 20m
  106.  
  107.    hi CursorLine guibg=#3a3a3a ctermbg=237
  108.    redraw
  109.    sleep 20m
  110.  
  111.    hi CursorLine guibg=#333333 ctermbg=235
  112.    redraw
  113.    sleep 20m
  114.  
  115.    hi CursorLine guibg=#2a2a2a ctermbg=233
  116.    redraw
  117.    sleep 20m
  118.  
  119.    execute 'hi ' . old_hi
  120.  
  121.    windo set cursorline
  122.    execute current_window . 'wincmd w'
  123. endfunction
Add Comment
Please, Sign In to add comment