mirror of https://github.com/akelge/vim
Fixed autocompletion on Tab
This commit is contained in:
parent
45f896159c
commit
aeff875b53
|
@ -25,6 +25,7 @@ endif
|
||||||
|
|
||||||
" colorscheme zenburn
|
" colorscheme zenburn
|
||||||
colorscheme freya
|
colorscheme freya
|
||||||
|
" colorscheme southwest-fog
|
||||||
" colorscheme moria
|
" colorscheme moria
|
||||||
" colorscheme morning
|
" colorscheme morning
|
||||||
" colorscheme desert
|
" colorscheme desert
|
||||||
|
|
26
vim/vimrc
26
vim/vimrc
|
@ -12,6 +12,7 @@ set history=50
|
||||||
set nohlsearch
|
set nohlsearch
|
||||||
set nostartofline
|
set nostartofline
|
||||||
" set paste
|
" set paste
|
||||||
|
set autochdir
|
||||||
|
|
||||||
set ruler
|
set ruler
|
||||||
set cmdheight=1
|
set cmdheight=1
|
||||||
|
@ -24,6 +25,7 @@ set expandtab
|
||||||
set softtabstop=4
|
set softtabstop=4
|
||||||
set autoindent
|
set autoindent
|
||||||
set smartindent
|
set smartindent
|
||||||
|
|
||||||
" For highlighted numbers:
|
" For highlighted numbers:
|
||||||
let python_highlight_numbers = 1
|
let python_highlight_numbers = 1
|
||||||
"
|
"
|
||||||
|
@ -80,14 +82,15 @@ colorscheme wombat256
|
||||||
|
|
||||||
" Function that returns tab if called on an "empty" line
|
" Function that returns tab if called on an "empty" line
|
||||||
" C-N elsewhere
|
" C-N elsewhere
|
||||||
" function! CleverTab()
|
function! CleverTab()
|
||||||
" if strpart( getline('.'), 0, col('.')-1 ) =~ '^\s*$'
|
if strpart( getline('.'), 0, col('.')-1 ) =~ '^\s*$'
|
||||||
" return "\<Tab>"
|
return "\<Tab>"
|
||||||
" else
|
else
|
||||||
" return "\<C-N>"
|
return "\<C-N>"
|
||||||
" endfunction
|
endfunction
|
||||||
" map the function to Tab
|
" map the function to Tab
|
||||||
" inoremap <C-\> <C-R>=CleverTab()<CR>
|
" inoremap <C-\> <C-R>=CleverTab()<CR>
|
||||||
|
inoremap <Tab> <C-R>=CleverTab()<CR>
|
||||||
set completeopt=longest
|
set completeopt=longest
|
||||||
|
|
||||||
|
|
||||||
|
@ -110,12 +113,14 @@ let Tlist_File_Fold_Auto_Close = 1
|
||||||
let Tlist_Use_Right_Window = 1
|
let Tlist_Use_Right_Window = 1
|
||||||
let Tlist_Display_Prototype = 0
|
let Tlist_Display_Prototype = 0
|
||||||
let Tlist_Compact_Format = 1
|
let Tlist_Compact_Format = 1
|
||||||
|
let Tlist_Show_Menu = 1
|
||||||
|
|
||||||
" """"""""
|
" """"""""
|
||||||
" NERDTree
|
" NERDTree
|
||||||
" """"""""
|
" """"""""
|
||||||
let NERDTreeIgnore=['\.vim$', '\~$', '\.pyc']
|
let NERDTreeIgnore = ['\.vim$', '\~$', '\.pyc']
|
||||||
let NERDTreeShowBookmarks=1
|
let NERDTreeShowBookmarks = 1
|
||||||
|
let NERDChristmasTree = 1
|
||||||
|
|
||||||
" """""""""""
|
" """""""""""
|
||||||
" BufExplorer
|
" BufExplorer
|
||||||
|
@ -143,7 +148,6 @@ nnoremap <silent> <Leader>b :HSBufExplorer<CR>
|
||||||
|
|
||||||
nnoremap <silent> <Leader>ts :ConqueTermSplit zsh<CR>
|
nnoremap <silent> <Leader>ts :ConqueTermSplit zsh<CR>
|
||||||
nnoremap <silent> <Leader>tt :ConqueTermTab zsh<CR>
|
nnoremap <silent> <Leader>tt :ConqueTermTab zsh<CR>
|
||||||
|
|
||||||
map <silent> <Leader>c <plug>NERDCommenterToggle
|
map <silent> <Leader>c <plug>NERDCommenterToggle
|
||||||
|
|
||||||
" nnoremap <silent> Y y$
|
" nnoremap <silent> Y y$
|
||||||
|
@ -181,8 +185,8 @@ nnoremap <silent> <D-0> 10gt
|
||||||
" Vim5 comes with syntaxhighlighting. If you want to enable syntaxhightlighting
|
" Vim5 comes with syntaxhighlighting. If you want to enable syntaxhightlighting
|
||||||
" by default uncomment the next three lines.
|
" by default uncomment the next three lines.
|
||||||
if has("syntax")
|
if has("syntax")
|
||||||
syntax on " Default to no syntax highlightning
|
syntax on " Default to no syntax highlightningendif " has("syntax")
|
||||||
endif " has("syntax")
|
endif
|
||||||
|
|
||||||
if has("autocmd")
|
if has("autocmd")
|
||||||
filetype indent on
|
filetype indent on
|
||||||
|
|
Loading…
Reference in New Issue