banoris / dotfiles Goto Github PK
View Code? Open in Web Editor NEWMy dotfiles
My dotfiles
By default, vim takes current buffer and $PWD/tags (generate from ctags) as input source to C-p autocomplete.
C-x submode in insert mode https://www.tldp.org/HOWTO/C-editing-with-VIM-HOWTO/auto-complete.html
https://stackoverflow.com/a/47967462/11548113 --> the OpenCompletion is what you need!
https://vim.fandom.com/wiki/Dictionary_completions
In vanilla bash, it will warn user for many files:
$ vim somedir/
There are 3038 rows, list them anyway? [n/y]
Takes ble.sh ~30s to display files in menu-complete. Investigate further.
Environment: vim on virtualbox VM. Felt the sluggishness when changing tabs
commit -- vimrc: autoreload file upon change + cursor line highlight + misc
" Auto reload file like Sublime. https://unix.stackexchange.com/a/383044
"set autoread
"autocmd FocusGained,BufEnter,CursorHold,CursorHoldI *
" \ if mode() !~ '\v(c|r.?|!|t)' && getcmdwintype() == '' | checktime | endif
"autocmd FileChangedShellPost *
" \ echohl WarningMsg | echo "File changed on disk. Buffer reloaded." | echohl None
<Ctrl-Alt-q>
??
<C-q>
is normal hotkey for exiting an application in Linux.
https://vi.stackexchange.com/questions/10897/how-do-i-customize-vimdiff-colors
Using below setting
hi DiffAdd ctermfg=NONE ctermbg=DarkGreen
hi DiffChange ctermfg=NONE ctermbg=NONE
hi DiffDelete ctermfg=LightBlue ctermbg=Red
hi DiffText ctermfg=Yellow ctermbg=Red
Steps to reproduce:
#!/usr/bin/env python
# some stuff here...
:wq
In terminal, vim closed after :wq command. Seems like it is trying to execute the script?
https://github.com/iskhanba/dotfiles/blob/a3e6dc9fca6ac1546319413e2efeb69d356a431e/.vimrc#L138
au BufWritePost * if getline(1) =~ "^#!" | if getline(1) =~ "/usr/bin/env" | silent execute "!chmod a+x <afile>" | endif | endif
Folding?
Or multiple files like https://vi.stackexchange.com/questions/3814/is-there-a-best-practice-to-fold-a-vimrc-file ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.