Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
vim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dotfiles
vim
Commits
27e99ef1
Commit
27e99ef1
authored
4 years ago
by
Henrik Tjäder
Browse files
Options
Downloads
Patches
Plain Diff
Remove neo, ctrlp. Tune Fuzzy
parent
6edeceef
Branches
master
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.vim/spell/sv.utf-8.add
+1
-0
1 addition, 0 deletions
.vim/spell/sv.utf-8.add
.vimrc
+12
-102
12 additions, 102 deletions
.vimrc
with
13 additions
and
102 deletions
.vim/spell/sv.utf-8.add
+
1
−
0
View file @
27e99ef1
...
@@ -333,3 +333,4 @@ OOM
...
@@ -333,3 +333,4 @@ OOM
bugfixes
bugfixes
BTreeMap
BTreeMap
MSRV
MSRV
multiremove
This diff is collapsed.
Click to expand it.
.vimrc
+
12
−
102
View file @
27e99ef1
...
@@ -828,104 +828,9 @@ let g:vimtex_fold_enabled = 1
...
@@ -828,104 +828,9 @@ let g:vimtex_fold_enabled = 1
let
g:vimtex_fold_manual
=
1
let
g:vimtex_fold_manual
=
1
set
fillchars
=
fold
:
\
set
fillchars
=
fold
:
\
" Neocompl
"Note: This option must be set in .vimrc(_vimrc). NOT IN .gvimrc(_gvimrc)!
" Disable AutoComplPop.
"let g:acp_enableAtStartup = 0
"" Use neocomplete.
"let g:neocomplete#enable_at_startup = 1
"" Use smartcase.
"let g:neocomplete#enable_smart_case = 1
"" Set minimum syntax keyword length.
"let g:neocomplete#sources#syntax#min_keyword_length = 3
"let g:neocomplete#lock_buffer_name_pattern = '\*ku\*'
"" Define dictionary.
"let g:neocomplete#sources#dictionary#dictionaries = {
"\ 'default' : '',
"\ 'vimshell' : $HOME.'/.vimshell_hist',
"\ 'scheme' : $HOME.'/.gosh_completions'
"\ }
"" Define keyword.
"if !exists('g:neocomplete#keyword_patterns')
"let g:neocomplete#keyword_patterns = {}
"endif
"let g:neocomplete#keyword_patterns['default'] = '\h\w*'
"" Plug key-mappings.
"inoremap <expr><C-g> neocomplete#undo_completion()
"inoremap <expr><C-l> neocomplete#complete_common_string()
"" Recommended key-mappings.
"" <CR>: close popup and save indent.
"inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR>
"function! s:my_cr_function()
"return (pumvisible() ? "\<C-y>" : "" ) . "\<CR>"
"" For no inserting <CR> key.
""return pumvisible() ? "\<C-y>" : "\<CR>"
"endfunction
"" <TAB>: completion.
"inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
"" <C-h>, <BS>: close popup and delete backword char.
"inoremap <expr><C-h> neocomplete#smart_close_popup()."\<C-h>"
"inoremap <expr><BS> neocomplete#smart_close_popup()."\<C-h>"
"" Close popup by <Space>.
""inoremap <expr><Space> pumvisible() ? "\<C-y>" : "\<Space>"
"" AutoComplPop like behavior.
""let g:neocomplete#enable_auto_select = 1
"" Enable omni completion.
"autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
"autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
"autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
"autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
"autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags
"" Enable heavy omni completion.
"if !exists('g:neocomplete#sources#omni#input_patterns')
"let g:neocomplete#sources#omni#input_patterns = {}
"endif
""let g:neocomplete#sources#omni#input_patterns.php = '[^. \t]->\h\w*\|\h\w*::'
"let g:neocomplete#sources#omni#input_patterns.c = '[^.[:digit:] *\t]\%(\.\|->\)'
""let g:neocomplete#sources#omni#input_patterns.cpp = '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::'
""
"" Neosnippet Plug key-mappings.
"" Note: It must be "imap" and "smap". It uses <Plug> mappings.
"imap <C-k> <Plug>(neosnippet_expand_or_jump)
"smap <C-k> <Plug>(neosnippet_expand_or_jump)
"xmap <C-k> <Plug>(neosnippet_expand_target)
"" SuperTab like snippets behavior.
"" Note: It must be "imap" and "smap". It uses <Plug> mappings.
"imap <C-k> <Plug>(neosnippet_expand_or_jump)
""imap <expr><TAB>
"" \ pumvisible() ? "\<C-n>" :
"" \ neosnippet#expandable_or_jumpable() ?
"" \ "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>"
"smap <expr><TAB> neosnippet#expandable_or_jumpable() ?
"\ "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>"
"
"
" CtrlP fuzzy search
" According to docs
"let g:ctrlp_map = '<c-p>'
"let g:ctrlp_cmd = 'CtrlP'
"" Exclude files listed in gitignore
"let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard']
"set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
"let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'
"let g:ctrlp_custom_ignore = {
"\ 'dir': '\v[\/]\.(git|hg|svn)$',
"\ 'file': '\v\.(exe|so|dll)$',
"\ 'link': 'some_bad_symbolic_links',
"\ }
" Skim plugin via skim.vim / similar like fzf
" Skim plugin via skim.vim / similar like fzf
map
<
C
-
f
>
<
Esc
><
Esc
>:
Files
!<
CR
>
map
<
C
-
f
>
<
Esc
><
Esc
>:
Files
!<
CR
>
inoremap
<
C
-
f
>
<
Esc
><
Esc
>:
B
Lines
!<
CR
>
inoremap
<
C
-
f
>
<
Esc
><
Esc
>:
Lines
!<
CR
>
map
<
C
-
g
>
<
Esc
><
Esc
>:
BCommits
!<
CR
>
map
<
C
-
g
>
<
Esc
><
Esc
>:
BCommits
!<
CR
>
" When inside the fuzzy search, use:
" When inside the fuzzy search, use:
"<Enter> replace current file
"<Enter> replace current file
...
@@ -950,14 +855,19 @@ let g:skim_colors =
...
@@ -950,14 +855,19 @@ let g:skim_colors =
\
'spinner'
:
[
'fg'
,
'Label'
],
\
'spinner'
:
[
'fg'
,
'Label'
],
\
'header'
:
[
'fg'
,
'Comment'
]
}
\
'header'
:
[
'fg'
,
'Comment'
]
}
function
!
RipgrepFzf
(
query
,
fullscreen
)
let
command_fmt
=
'rg --column --line-number --no-heading --color=always --smart-case -- %s || true'
let
initial_command
=
printf
(
command_fmt
,
shellescape
(
a:query
))
let
reload_command
=
printf
(
command_fmt
,
'{q}'
)
let
spec
=
{
'options'
:
[
'--phony'
,
'--query'
,
a:query
,
'--bind'
,
'change:reload:'
.
reload_command
]}
call
fzf#
vim
#
grep
(
initial_command
,
1
,
fzf#
vim
#with_preview
(
spec
),
a:fullscreen
)
endfunction
" Enable Ag and Rg for skim plugin
" Enable Ag and Rg for skim plugin
"
command! -bang -nargs=* Ag call fzf#vim#ag_interactive(<q-args>, fzf#vim#with_preview('right:50%:hidden', 'alt-h'))
command
!
-
bang
-
nargs
=
* Ag
call
fzf#
vim
#ag_interactive
(<
q
-
args
>,
fzf#
vim
#with_preview
(
'right:50%:hidden'
,
'alt-h'
))
"command! -bang -nargs=* Rg call fzf#vim#rg_interactive(<q-args>, fzf#vim#with_preview('right:50%:hidden', 'alt-h'))
"command! -bang -nargs=* Rg call fzf#vim#rg_interactive(<q-args>, fzf#vim#with_preview('right:50%:hidden', 'alt-h'))
"command! -bang -nargs=* Rg call fzf#vim#rg_interactive(<q-args>, fzf#vim#with_preview())
command
!
-
nargs
=
*
-
bang RG
call
RipgrepFzf
(<
q
-
args
>,
<
bang
>
0
)
command
!
-
bang
-
nargs
=
* RG
\
call
fzf#
vim
#
grep
(
\
"rg -g!target --column --line-number --no-heading --color=always --colors 'match:bg:yellow' --colors 'match:fg:black' --colors 'match:style:nobold' --colors 'path:fg:green' --colors 'path:style:bold' --colors 'line:fg:yellow' --colors 'line:style:bold' --smart-case -- "
.
shellescape
(<
q
-
args
>),
1
,
\
fzf#
vim
#with_preview
(),
<
bang
>
0
)
command
!
-
bang
-
nargs
=
* Rg
command
!
-
bang
-
nargs
=
* Rg
\
call
fzf#
vim
#
grep
(
\
call
fzf#
vim
#
grep
(
\
'rg -g!target -g!book -g!docs --column --line-number --no-heading --smart-case -- '
.
shellescape
(<
q
-
args
>),
1
,
\
'rg -g!target -g!book -g!docs --column --line-number --no-heading --smart-case -- '
.
shellescape
(<
q
-
args
>),
1
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment