Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. set nocompatible
  2. set ls=2
  3.  
  4. set tabstop=2
  5. set shiftwidth=2
  6. set softtabstop=2
  7. set expandtab
  8.  
  9. set hlsearch
  10. set incsearch
  11. set number
  12. set autoindent
  13. set smartindent
  14.  
  15. "fix for not indenting # comments
  16. set cindent
  17. "set cinkeys=0{,0},!^F,o,O,e " default is: 0{,0},0),:,0#,!^F,o,O,e
  18.  
  19. "set fdm=syntax
  20.  
  21. "search up directory tree for .tags file
  22. set tags=./tags;/
  23.  
  24. colorscheme elflord
  25. set background=dark
  26. set t_Co=256
  27. syntax on
  28.  
  29. "call indent_guides#enable()
  30. if version >= 700
  31. set runtimepath+=$HOME/.vim/plugin_700
  32. endif
  33. "hi IndentGuidesOdd ctermbg=black
  34. "hi IndentGuidesEven ctermbg=darkgrey
  35.  
  36. "show the name of the current function
  37. "fun! ShowFuncName()
  38. " let lnum = line(".")
  39. " let col = col(".")
  40. " echohl ModeMsg
  41. " echo getline(search("^[^ \t#/]\\{2}.*[^:]\s*$", 'bW'))
  42. " echohl None
  43. " call search("\\%" . lnum . "l" . "\\%" . col . "c")
  44. "endfun
  45. "map ,f :call ShowFuncName() <CR>
  46.  
  47.  
  48. "augroup vimrc
  49. " au BufReadPre * setlocal foldmethod=indent
  50. " au BufWinEnter * if &fdm == 'indent' | setlocal foldmethod=manual | endif
  51. "augroup END
  52.  
  53. "inoremap # X^H#
  54.  
  55. " resize split to fit file
  56. fun! Fit()
  57. let len=line("$") " line number of last line
  58. :0
  59. execute 'resize ' . len
  60. endfun
  61. map <C-W>* :call Fit() <CR>
  62.  
  63. execute pathogen#infect()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement