C coders initial setup of .bashrc file and .vimrc for small project
For small projects we can add some alias in .bashrc file as below :-
Add below lines for cscope,ctag, and git setup.
alias bcscope='find . -name "*.c" -o -name "*.cpp" -o -name "*.h" -o -name "*.hpp" > cscope.files'
alias creatctag='ctags `find . -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp"`'
alias documnetviewer='evince';
alias creatctag='ctags `find . -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp"`'
alias documnetviewer='evince';
alias gitsetup='git init;git add *;git commit -am "Initial";echo -e "*.o\n*.ko" > .gitignore'
For .vimrc file need to change below line.
.vimrc file is a file in home directory from where vi or vim reads some initial setting
set nu
set hlsearch
set incsearch
set ic
set cursorline
set nu :- Show line number
set nonu :- Hide line number
set hlsearch :- Set Highlight searching
![]() | |||
| Screenshot for hlsearch |
set incsearch :- Set incremental search
set ic :- Set ignore case
set noic :- Set no ignore case
set cursorline :- Enable horizontal cursor line in vi editor.
![]() |
| Cursor line showing. |
Note :- For comment out any setting in .vimrc file use " in starting of line

