-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tags, asynctasks. Remove clang_format_config.vim
- Loading branch information
1 parent
70af014
commit afcdbaa
Showing
19 changed files
with
1,136 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
default:\ | ||
:skip=tags,TAGS,gtags.files,cscope.files,cscope.out,cscope.po.out,cscope.in.out,*.o,*.a,*.so,*.lo,*.zip,*.gz,*.bz2,*.xz,*.tgz,build/,third_party/: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
" https://www.zhihu.com/question/547708456/answer/2645630850 | ||
function HtmlPrettify() | ||
if &filetype != 'html' | ||
echo 'not a html file' | ||
return | ||
endif | ||
silent! exec "s/<[^.]*>/\r&\r/g" | ||
silent! exec "g/^$/d" | ||
exec "normal ggVG=" | ||
endfunction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[file-build] | ||
command:c=gcc -O2 -Wall "$(VIM_FILEPATH)" -o "$(VIM_PATHNOEXT)" -lstdc++ -lm -msse3 | ||
command:cpp=g++ -O2 -Wall "$(VIM_FILEPATH)" -o "$(VIM_PATHNOEXT)" -lstdc++ -lm -msse3 | ||
command:go=go build -o "$(VIM_PATHNOEXT)" "$(VIM_FILEPATH)" | ||
command:make=make -f "$(VIM_FILEPATH)" | ||
output=quickfix | ||
cwd=$(VIM_FILEDIR) | ||
save=2 | ||
|
||
[file-run] | ||
command="$(VIM_FILEPATH)" | ||
command:c,cpp="$(VIM_PATHNOEXT)" | ||
command:go="$(VIM_PATHNOEXT)" | ||
command:python=python3 "$(VIM_FILENAME)" | ||
command:javascript=node "$(VIM_FILENAME)" | ||
command:sh=sh "$(VIM_FILENAME)" | ||
command:lua=lua "$(VIM_FILENAME)" | ||
command:perl=perl "$(VIM_FILENAME)" | ||
command:ruby=ruby "$(VIM_FILENAME)" | ||
output=terminal | ||
cwd=$(VIM_FILEDIR) | ||
save=2 | ||
|
||
[project-build] | ||
command:c,cpp=make | ||
# set the working directory to the project root. | ||
cwd:c,cpp=$(VIM_ROOT) | ||
|
||
[project-run] | ||
command:c,cpp=make run | ||
# <root> is an alias to `$(VIM_ROOT)`, a little easier to type. | ||
cwd:c,cpp=<root> | ||
output:c,cpp=terminal | ||
|
||
[ctags] | ||
command:c,cpp=ctags -R --exclude=build --exclude=third_party --exclude=doc * | ||
|
||
[cscope] | ||
command:cpp=find . -name '*.cc' -or -name '*.h' > cscope.files && cscope -Rbq | ||
|
||
[gtags] | ||
command=gtags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Plug 'skywind3000/asynctasks.vim' | ||
Plug 'skywind3000/asyncrun.vim' | ||
|
||
let g:asyncrun_open = 6 " open quickfix window automatically at 6 lines height after command starts | ||
let g:asyncrun_rootmarks = ['.git', '.root'] | ||
let g:asynctasks_term_pos = 'tab' | ||
let g:asynctasks_term_reuse = 1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.