Commit fcadc7e6 by PotatoGim

Restruct configs

parent b59e3253
vim/vimfiles/view
vimrc/vimfiles/view
*.a
*.o
*~
[submodule "vim/vimfiles/bundle/vundle"]
path = vim/vimfiles/bundle/vundle
url = https://github.com/gmarik/vundle.git
[submodule "vimrc/vimfiles/bundle/vundle"]
path = vimrc/vimfiles/bundle/vundle
url = https://github.com/gmarik/vundle
#!/bin/bash
##############################################################################
# Script Name : nst-chroot.sh
# Script Name : pg_nstchroot.sh
# Purpose : chroot in nst dev-environment
# Author : PotatoGim (potatokim@gluesys.com)
# Date : 2012. 05. 14. (월) 14:23:06 KST
......
let $grepfile="*.[ch] *.cpp"
map ,gc :grep <cword> * -R<CR>
vnoremap <c-a> :IncN<CR>
au BufNewFile *.cpp call InsertSkeleton()
au BufNewFile *.h call InsertHeaderSkeleton()
function! InsertSkeleton()
0r ~/.vim/skeleton.cpp
call InsertInclude()
endfunction
function! InsertHeaderSkeleton()
0r ~/.vim/skeleton.h
call InsertFname()
endfunction
function! InsertInclude()
let fname = expand("%:t")
let fname = substitute(fname, "cpp", "h", "g")
call search("#include")
exe "normal A " . "\"" . fname . "\""
endfunction
function! InsertFname()
" Convert newname.h to _NEWNAME_H_
let fname = expand("%:t")
let cname = "C" . substitute(fname, "\.h", "", "g")
let fname = toupper(fname)
let fname = substitute(fname, "\\.", "_", "g")
" Search for #ifndef
call search("#ifndef")
exe "normal A " . "___" . fname . "___"
" Search for #define
call search("#define")
exe "normal A " . "___" . fname . "___"
" Search for #endif
call search("#endif")
exe "normal A " . "// ___" . fname . "___"
" Search for #class
call search("class")
exe "normal A" . cname . " {"
" Search for public
call search("public:")
exe "normal A" . "\n" . cname . "() {}\nvirtual ~" . cname . "() {}"
endfunction
"
" vim -b : edit binary using xxd-format!
augroup Binary
au!
au BufReadPre *.bin let &bin=1
au BufReadPost *.bin if &bin | %!xxd
au BufReadPost *.bin set ft=xxd | endif
au BufWritePre *.bin if &bin | %!xxd -r
au BufWritePre *.bin endif
au BufWritePost *.bin if &bin | %!xxd
au BufWritePost *.bin set nomod | endif
augroup END
augroup CvsLogging
au!
au BufNewFile,BufRead /tmp/cvs* set fenc=utf-8 enc=utf-8
augroup END
augroup ChangeLog
au!
au BufNewFile,BufRead ChangeLog* set fenc=utf-8 enc=utf-8
augroup END
let g:netrw_dirhistmax =10
let g:netrw_dirhist_cnt =9
AutoComplPop @ 0b075cf5
Subproject commit 0b075cf5e6ef05584ef6377e116e8d0fe1f8f788
EasyMotion @ bde4831d
Subproject commit bde4831d5c6922440651a3423c9b60116415f1db
FuzzyFinder @ b9f16597
Subproject commit b9f165970346df55862853dd83c8a4f2b2b70262
L9 @ c822b05e
Subproject commit c822b05ee0886f9a9703227dc85a6d47612c4bf1
OmniCppComplete @ 2fac0159
Subproject commit 2fac015957895dffa6b298e3c028ac30560d015b
The-NERD-tree @ af65bd23
Subproject commit af65bd23e69a3a5fc1a39eb47733191b7110bb1e
bufexplorer.zip @ 5ad9b124
Subproject commit 5ad9b124335a2764d1413b06ae40e8641e77740a
c.vim @ 69f0368c
Subproject commit 69f0368c7d8dac196bd94ddfa80d98b1cedc7eb0
ctags.vim @ a438a4f5
Subproject commit a438a4f580c9445744c25941185c8cb8fb6b79b9
fugitive.vim @ 9521e1cb
Subproject commit 9521e1cb774e5ae2f2da4e753177b8f962e1febb
perl-support.vim @ 96f8b0b4
Subproject commit 96f8b0b4a73127a6c48b1bca8ea93493b857bf30
taglist.vim @ 53041fbc
Subproject commit 53041fbc45398a9af631a20657e109707a455339
vim-addon-mw-utils @ bc195626
Subproject commit bc19562640fd3f78fcd55091831fce9bcf4aa3b4
vim-snipmate @ 6bed4c39
Subproject commit 6bed4c390464ce70bafc6ffdccd6b3c57d0fe6bf
Subproject commit 769010ae4dc2ccb40bb0d93078f0480c80553860
/*!
* <NAME>
*
* Author : Gim Ji-Hyeon (potatogim@potatogim.net)
* Version :
* Created : <WRITTEN_TIME>
*
* Description about this file
*
*****************************************************************************
* Etc.
*
*/
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
/*!
* <NAME>
*
* Author : Gim Ji-Hyeon (potatogim@potatogim.net)
* Version :
* Created : <WRITTEN_TIME>
*
* Description about this file
*
*****************************************************************************
* Etc.
*
*/
#include <iostream>
using namespace std;
skeleton.cc
\ No newline at end of file
skeleton.cc
\ No newline at end of file
/*!
* <NAME>
*
* Author : Gim Ji-Hyeon (potatogim@potatogim.net)
* Version :
* Created : <WRITTEN_TIME>
*
* Description about this file
*
*****************************************************************************
* Etc.
*
*/
#ifndef <HEADER>
#define <HEADER>
#endif
/*!
* <NAME>
*
* Author : Gim Ji-Hyeon (potatogim@potatogim.net)
* Version :
* Created : <WRITTEN_TIME>
*
* Description about this file
*
*****************************************************************************
* Etc.
*
*/
#ifndef <HEADER>
#define <HEADER>
#endif
skeleton.hh
\ No newline at end of file
skeleton.hh
\ No newline at end of file
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment