Compare commits
4 Commits
ae70101eba
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 54baed66d2 | |||
|
|
67d73a4c71 | ||
|
|
5a6d64d401 | ||
|
|
056df5ec19 |
12
.gitmodules
vendored
12
.gitmodules
vendored
@@ -10,9 +10,6 @@
|
|||||||
[submodule "vim/bundle/supertab"]
|
[submodule "vim/bundle/supertab"]
|
||||||
path = vim/bundle/supertab
|
path = vim/bundle/supertab
|
||||||
url = https://github.com/ervandew/supertab.git
|
url = https://github.com/ervandew/supertab.git
|
||||||
[submodule "vim/bundle/taglist"]
|
|
||||||
path = vim/bundle/taglist
|
|
||||||
url = https://github.com/vim-scripts/taglist.vim.git
|
|
||||||
[submodule "vim/bundle/lightline"]
|
[submodule "vim/bundle/lightline"]
|
||||||
path = vim/bundle/lightline
|
path = vim/bundle/lightline
|
||||||
url = https://github.com/itchyny/lightline.vim.git
|
url = https://github.com/itchyny/lightline.vim.git
|
||||||
@@ -37,6 +34,9 @@
|
|||||||
[submodule "vim/bundle/vim-bufferline"]
|
[submodule "vim/bundle/vim-bufferline"]
|
||||||
path = vim/bundle/vim-bufferline
|
path = vim/bundle/vim-bufferline
|
||||||
url = https://github.com/bling/vim-bufferline
|
url = https://github.com/bling/vim-bufferline
|
||||||
[submodule "vim/bundle/YouCompleteMe"]
|
[submodule "vim/bundle/tagbar"]
|
||||||
path = vim/bundle/YouCompleteMe
|
path = vim/bundle/tagbar
|
||||||
url = https://github.com/ycm-core/YouCompleteMe.git
|
url = https://github.com/preservim/tagbar.git
|
||||||
|
[submodule "vim/bundle/yaifa"]
|
||||||
|
path = vim/bundle/yaifa
|
||||||
|
url = https://github.com/vim-scripts/yaifa.vim.git
|
||||||
|
|||||||
@@ -14,4 +14,6 @@ unset SSH_ASKPASS
|
|||||||
[ -e "$DIR_COLORS" ] || DIR_COLORS=""
|
[ -e "$DIR_COLORS" ] || DIR_COLORS=""
|
||||||
eval "`dircolors -b $DIR_COLORS`"
|
eval "`dircolors -b $DIR_COLORS`"
|
||||||
|
|
||||||
|
export PATH=$PATH:$HOME/.local/bin
|
||||||
|
|
||||||
#### END MAGIC VALUE: AZSQFRB8
|
#### END MAGIC VALUE: AZSQFRB8
|
||||||
|
|||||||
20
gentags
Executable file
20
gentags
Executable file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
CSCOPE_DIR="$PWD/cscope"
|
||||||
|
|
||||||
|
if [ ! -d "$CSCOPE_DIR" ]; then
|
||||||
|
mkdir "$CSCOPE_DIR"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Finding files ..."
|
||||||
|
find "$PWD" -type d \( -name regs -o -name reg \) -prune \
|
||||||
|
-o -name '*.[ch]' \
|
||||||
|
-o -name '*.cpp' \
|
||||||
|
-o -name '*.cc' \
|
||||||
|
-o -name '*.hpp' > "$CSCOPE_DIR/cscope.files"
|
||||||
|
|
||||||
|
echo "Adding files to cscope db: $PWD/cscope.db ..."
|
||||||
|
cscope -b -i "$CSCOPE_DIR/cscope.files"
|
||||||
|
|
||||||
|
export CSCOPE_DB="$PWD/cscope.out"
|
||||||
|
echo "Exported CSCOPE_DB to: '$CSCOPE_DB'"
|
||||||
14
setup.sh
14
setup.sh
@@ -18,11 +18,18 @@ git submodule init
|
|||||||
git submodule update --recursive
|
git submodule update --recursive
|
||||||
|
|
||||||
echo "Copying configs"
|
echo "Copying configs"
|
||||||
copy_list=(ctags dircolors gitconfig inputrc tmux.conf vim vimrc Xdefaults)
|
config_copy_list=(ctags dircolors gitconfig inputrc tmux.conf vim vimrc Xdefaults)
|
||||||
for config in ${copy_list[@]}; do
|
for config in ${config_copy_list[@]}; do
|
||||||
cp -fr "$config" $HOME/."$config"
|
cp -fr "$config" $HOME/."$config"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo "Copying scripts"
|
||||||
|
mkdir -p "${HOME}/.local/bin"
|
||||||
|
script_copy_list=(update-dns.sh gentags)
|
||||||
|
for script in ${script_copy_list[@]}; do
|
||||||
|
cp -fr "${script}" "${HOME}/.local/bin/${script}"
|
||||||
|
done
|
||||||
|
|
||||||
echo "=========================================================="
|
echo "=========================================================="
|
||||||
echo "= Be sure to adjust the Git user/email as necessary!!!!! ="
|
echo "= Be sure to adjust the Git user/email as necessary!!!!! ="
|
||||||
echo "=========================================================="
|
echo "=========================================================="
|
||||||
@@ -33,5 +40,6 @@ echo ""
|
|||||||
echo "NOTE: If you wand to use YCM, you need to do the following:"
|
echo "NOTE: If you wand to use YCM, you need to do the following:"
|
||||||
echo " - Install python3-dev"
|
echo " - Install python3-dev"
|
||||||
echo " - Install either vim-nox or build vim from source with python3 enabled"
|
echo " - Install either vim-nox or build vim from source with python3 enabled"
|
||||||
echo " - cd ~/.vim/bundle/YouCompleteMe && python3 install.py --clangd-completer"
|
echo " - Download and install YCM: https://github.com/ycm-core/YouCompleteMe.git"
|
||||||
|
echo " - cd ./YouCompleteMe && python3 install.py --clangd-completer"
|
||||||
echo " - Remove comment markers under OPTION B in your .vimrc"
|
echo " - Remove comment markers under OPTION B in your .vimrc"
|
||||||
|
|||||||
4
update-dns.sh
Executable file
4
update-dns.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
dns=$(nslookup.exe www.google.com 2>&1 | grep "Address:" | awk '{print $2}' | tr -d '\r')
|
||||||
|
printf "nameserver %s\n" "$dns" | tee /etc/resolv.conf
|
||||||
Submodule vim/bundle/YouCompleteMe deleted from 4f1dcf4f97
1
vim/bundle/tagbar
Submodule
1
vim/bundle/tagbar
Submodule
Submodule vim/bundle/tagbar added at 12edcb5944
Submodule vim/bundle/taglist deleted from 53041fbc45
1
vim/bundle/yaifa
Submodule
1
vim/bundle/yaifa
Submodule
Submodule vim/bundle/yaifa added at ab87aa42cb
19
vimrc
19
vimrc
@@ -56,17 +56,11 @@ nnoremap <leader>n :NERDTreeFocus<CR>
|
|||||||
nnoremap <C-n> :NERDTreeToggle<CR>
|
nnoremap <C-n> :NERDTreeToggle<CR>
|
||||||
nnoremap <C-f> :NERDTreeFind<CR>
|
nnoremap <C-f> :NERDTreeFind<CR>
|
||||||
|
|
||||||
"""" Taglist
|
"""" Tagbar
|
||||||
set tags=./tags; " Recursively search backwards for ctags file
|
set tags=./tags; " Recursively search backwards for ctags file
|
||||||
" CTRL-l to open taglist
|
set tagbsearch " Use binary search in tags file (assumes sorted)
|
||||||
nnoremap <C-l> :TlistToggle<CR>
|
set tagcase=match " Match case when searching tags (much faster)
|
||||||
" CTRL-p to show function name in status bar
|
nnoremap <C-l> :TagbarToggle<CR>
|
||||||
nnoremap <C-p> :TlistShowPrototype<CR>
|
|
||||||
let Tlist_Use_Right_Window = 1 " Move window to right side
|
|
||||||
let Tlist_Exit_OnlyWindow = 1 " Close if only window left
|
|
||||||
let Tlist_Hightlight_Tag_On_BufEnter = 1 " Hightlight current tag
|
|
||||||
let Tlist_Display_Prototypte = 1 " Show full prototype at bottom
|
|
||||||
let Tlist_Ctags_Cmd = 'ctags --extra=-q --c++-kinds=-p'
|
|
||||||
|
|
||||||
"""" vim-rainbow
|
"""" vim-rainbow
|
||||||
let g:rainbow_active = 1
|
let g:rainbow_active = 1
|
||||||
@@ -148,6 +142,9 @@ nnoremap <C-y> :SyntasticToggleMode<CR>
|
|||||||
"let g:ycm_echo_current_diagnostic = 1 " Echo line's diagnostic that cursor is on
|
"let g:ycm_echo_current_diagnostic = 1 " Echo line's diagnostic that cursor is on
|
||||||
"let g:ycm_min_num_of_chars_for_completion = 4 " Wait for 4 characters before completion
|
"let g:ycm_min_num_of_chars_for_completion = 4 " Wait for 4 characters before completion
|
||||||
"
|
"
|
||||||
|
"let g:ycm_confirm_extra_conf = 0
|
||||||
|
"" \y to apply FixIt command
|
||||||
|
"nnoremap <leader>y :YcmCompleter FixIt<CR>
|
||||||
"" Show compilation errors
|
"" Show compilation errors
|
||||||
"nnoremap <silent> <C-y> :YcmDiags<CR>
|
"nnoremap <silent> <C-y> :YcmDiags<CR>
|
||||||
"" Toggle documentation popup (\D)
|
"" Toggle documentation popup (\D)
|
||||||
|
|||||||
Reference in New Issue
Block a user